package com.neiquan.backstage.pub.bsc.dao.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.neiquan.backstage.core.PO;

@Entity
@Table
public class Payment extends PO{
	public static final Integer PAY_LINE_ON=1;
	public static final Integer PAY_LINE_BELOW=0;
	public static final Integer PAY_FAIL=2;
	public static final Integer PAY_SUCCEE=1;
	public static final Integer PAY_WAIT=0;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(unique = true, nullable = false)
	private Integer paymentId;		//缴费记录表单
	private Integer leaseId;		//租房单
	private Long stratTime;			//当前缴费时间
	private Integer monthNumber;	//交钱几个月
	private Long endTime;			//缴费截至时间
	private double totalRent;		//缴费总金额
	private Integer mode;			//收费方式0线下收取模式，1线上收取模式
	private Integer entrepreneurId; 
	private Integer	userId;
	private String UUID;         //微信回掉确定表的唯一和正确
	private Integer status;			//缴费是否成功

//	序列化和设定主键
	@Override
	public Serializable getId() {
		// TODO Auto-generated method stub
		return paymentId;
	}

	public Integer getPaymentId() {
		return paymentId;
	}

	public void setPaymentId(Integer paymentId) {
		this.paymentId = paymentId;
	}
	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}


	public String getUUID() {
		return UUID;
	}

	public void setUUID(String uUID) {
		UUID = uUID;
	}

	public Integer getLeaseId() {
		return leaseId;
	}

	public void setLeaseId(Integer leaseId) {
		this.leaseId = leaseId;
	}

	public Long getStratTime() {
		return stratTime;
	}

	public void setStratTime(Long stratTime) {
		this.stratTime = stratTime;
	}

	public Long getEndTime() {
		return endTime;
	}

	public void setEndTime(Long endTime) {
		this.endTime = endTime;
	}


	public double getTotalRent() {
		return totalRent;
	}

	public void setTotalRent(double totalRent) {
		this.totalRent = totalRent;
	}

	public Integer getMode() {
		return mode;
	}

	public void setMode(Integer mode) {
		this.mode = mode;
	}

	public Integer getMonthNumber() {
		return monthNumber;
	}

	public void setMonthNumber(Integer monthNumber) {
		this.monthNumber = monthNumber;
	}

	public Integer getEntrepreneurId() {
		return entrepreneurId;
	}

	public void setEntrepreneurId(Integer entrepreneurId) {
		this.entrepreneurId = entrepreneurId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
}
